Re: [ADMIN] v6.4.2 backend crashing on certain sql stmts - Mailing list pgsql-admin

From Herouth Maoz
Subject Re: [ADMIN] v6.4.2 backend crashing on certain sql stmts
Date
Msg-id l03110705b2cb5e105026@[147.233.159.109]
Whole thread Raw
In response to v6.4.2 backend crashing on certain sql stmts  (gjerde@icebox.org)
List pgsql-admin
At 11:39 +0200 on 20/1/99, gjerde@icebox.org wrote:


>
> This is the query that breaks:
> SELECT memberaccess.access
>             FROM memberaccess
>             WHERE memberaccess.MemberID = members.ID
>               AND members.username LIKE 'gjerde';
>
> This last query will give the error message on top.
> The sql statements to create my tables are below.

You are comparing a value of type INT8 with one of type INT4    . I suppose
this *should* work OK, with one type being converted to the other, but as I
have seen so many messages to the mailing lists about broken INT8 support,
I think you better avoid it.

Think: if you are restricting by MemberID = ID, it makes sense that the two
fields should have the same domain. That is, since members.ID, a primary
key, will never have the big values associated with an INT8, it makes no
sense to define MemberID as INT8.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-admin by date:

Previous
From: gjerde@icebox.org
Date:
Subject: v6.4.2 backend crashing on certain sql stmts
Next
From: Marc Eggenberger
Date:
Subject: PGSQL 6.4 is crashing